<?php
/*
 *author:Yangligao
 *Date:2013-9-26
 */
class JoinCpModel{
	private  $tableName = 'joincp';
	
	function joincp_insert($arr){

		return Db::insert($this->tableName, $arr);
	}
	
	function joincp_select($columList='*',$where='',$limit='',$order='',$group=''){
		
		return Db::select($this->tableName, $columList,$where,$limit,$order,$group);
	}
	
	function joincp_delete($arr){
		return Db::delete($this->tableName, $arr);
	}
	
	function joincp_update($arr){
		return Db::update($this->tableName, $arr, "cp_id");
	}
}
?>
